package com.ylz.sjzx.sio.common.mid.mq;

import com.ylz.sjzx.sio.common.mid.enums.QueueType;
import lombok.Getter;

/**
 * @author wiqi
 * @version 1.0
 * @date 2020/12/24
 */
@Getter
public enum ExchangeEnum {
    Exchange_IM_CHAT_DIRECT_TEST(QueueConst.EXCHANGE + QueueConst.IM_CHAT_DIRECT_TEST, true, QueueType.direct);

    /**
     * 交换机名称 规范： exchange_服务编码.模块编码.功能编码
     */
    private String exchangeName;
    private boolean durable;

    private QueueType type;

    ExchangeEnum(String exchangeName, boolean durable, QueueType type) {
        this.exchangeName = exchangeName;
        this.durable = durable;
        this.type = type;
    }
}
